package com.tanglongan.designPattern.dp06_adapter.demo03.optimize02;

import com.tanglongan.designPattern.dp06_adapter.demo03.oldSystem.PasswordService;
import com.tanglongan.designPattern.dp06_adapter.demo03.oldSystem.ResultMsg;

public abstract class AbstractAdapter extends PasswordService implements ILoginAdapter {

    protected ResultMsg loginForRegist(String username, String password) {
        if (password == null) {
            password = "THIRD_EMPTY";
        }
        super.register(username, password);
        return super.login(username, password);
    }

}
